<template>
    <div class="newgames-container">
        <div class="games-item display-flex-con" v-for="(item,index) in gameList" :key="index" @click="doGames(item)">
            <div class="games-head">
                <img :src="item.imgUrl">
            </div>
            <div class="game-left-content">
                <div class="game-name"><span>{{ item.gameName }}</span></div>
                <div class="game-tip"><span>{{ item.gameTip }}</span></div>
                <div class="game-playNum"><span>{{ item.playNum + '人在玩' }}</span></div>
            </div>
        </div>
    </div>
</template>

<script>
// import pic from '@/assets/images/head.png'
export default {
    name: 'newgames',
    data(){
        return{
            gameList:[]
        }
    },
    created(){
        this.gameList = [

        ]
    },
    methods:{
        doGames(item){
          // eslint-disable-next-line no-console
            console.log(item.gimeUrl);
        }
    }
}
</script>
<style scoped lang='scss'>
.newgames-container{
    height: 100%;
    overflow-y: auto;
    .games-item{
        height: 90px;
        padding: 5px;
        border-bottom: 1px solid #dcdcdc;
        .games-head{
            height: 90px;
            width: 90px;
            img{
                height: 90px;
                width: 90px;
            }
        }
        .game-left-content{
            width: 100%;
            margin-left: 10px;
            font-size: 14px;
            color: #333333;
            height: 30px;
            line-height: 30px;
            text-align: left;
            .game-name{
                font-size: 15px;
                font-weight: 700;
                height: 30px;
                line-height: 30px;
            }
        }
    }
    .games-item:last-child{
        border: none;
    }
}
</style>
